const MongoClient = require('mongodb').MongoClient;
const ObjectId = require('mongodb').ObjectId;
const url = "mongodb://taosha_user:apyl8XWP6LSW4JHs@101.35.6.34:27722/taosha";

async function main() {
  const client = await MongoClient.connect(url, {useNewUrlParser: true, useUnifiedTopology: true});
  const db = client.db('taosha');
  const TopicModel = db.collection('topics');
  const UserModel = db.collection('users');

  let cnt = await UserModel.find({'froms.name': '播客RSS'});


  console.log(cnt);


  client.close();
}

main();
